package com.atguigu.common.constrant;

/**
 * @author centurion
 * @description: TODO
 * @date 2024/7/1
 */
public class ProductConst {
    public enum AttrEnum {
        ARRE_TYPE_BASE(1, "基本属性"),// 规格参数
        ARRE_TYPE_SALE(0, "销售属性");
        int code;
        String message;

        AttrEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }

    //商品上架状态枚举
    public enum StateEnum {
        NEW_SPU(0, "新建"),
        UP_SPU(1, "上架"),
        DOWN_SPU(2, "下架");
        int code;
        String message;

        StateEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
